CC=cc
INC=
LIB=
CFLAGS=-c -Wall $(INC)
LDFLAGS=$(LIB)
SOURCES=gpslogdctl.c
OBJECTS=$(SOURCES:.c=.o)
EXECUTABLE=gpslogdctl

.PHONY: all clean

all: $(SOURCES) $(EXECUTABLE)
	
$(EXECUTABLE): $(OBJECTS)
	$(CC) $(LDFLAGS) $(OBJECTS) -o $@

.cpp.o:
	$(CC) $(CFLAGS) $< -o $@

clean:
	rm -rf *.o $(EXECUTABLE)

